package com.dengyuanke.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-07
 */
@ApiModel("用户实体")
@TableName("tb_user")
public class User extends SuperEntity<User> {


    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
	private String name;
    /**
     * 电话号码
     */
	@ApiModelProperty("电话号码")
	private String phone;
    /**
     * 购买者id
     */
	@ApiModelProperty("购买者id")
	@TableField("parent_id")
	private String parentId;
    /**
     * 微信id
     */
	@ApiModelProperty("微信id")
	@TableField("open_id")
	private String openId;
	/**
	 * 头像地址
	 */
	@ApiModelProperty("头像地址")
	@TableField("head_url")
	private String headUrl;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getHeadUrl() {
		return headUrl;
	}

	public void setHeadUrl(String headUrl) {
		this.headUrl = headUrl;
	}

	@Override
	public String toString() {
		return "User{" +
				"name='" + name + '\'' +
				", phone='" + phone + '\'' +
				", parentId='" + parentId + '\'' +
				", openId='" + openId + '\'' +
				", headUrl='" + headUrl + '\'' +
				'}';
	}
}
